package cn.stylefeng.guns.modular.basic.service;

import java.io.IOException;
import java.util.List;

import cn.stylefeng.guns.modular.order.model.params.OrderTransportParam;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.service.IService;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicPutgoods;
import cn.stylefeng.guns.modular.basic.model.params.BasicPutgoodsParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicPutgoodsResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

/**
 * <p>
 * 收货单位表 服务类
 * </p>
 *
 * @author hu
 * @since 2019-07-02
 */
public interface BasicPutgoodsService extends IService<BasicPutgoods> {

    /**
     * 新增
     *
     * @author hu
     * @Date 2019-07-02
     */
    void add(BasicPutgoodsParam param);

    /**
     * 删除
     *
     * @author hu
     * @Date 2019-07-02
     */
    void delete(BasicPutgoodsParam param);

    /**
     * 更新
     *
     * @author hu
     * @Date 2019-07-02
     */
    void update(BasicPutgoodsParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author hu
     * @Date 2019-07-02
     */
    BasicPutgoodsResult findBySpec(BasicPutgoodsParam param, Long operateId);

    /**
     * 查询列表，Specification模式
     *
     * @author hu
     * @Date 2019-07-02
     */
    List<BasicPutgoodsResult> findListBySpec(BasicPutgoodsParam param, Long operateId);

    /**
     * 查询分页数据，Specification模式
     *
     * @author hu
     * @Date 2019-07-02
     */
     LayuiPageInfo findPageBySpec(BasicPutgoodsParam param, String condition,Long deptId, Long operateId);
     LayuiPageInfo findPageNewBySpec(BasicPutgoodsParam param, String condition,Long deptId, Long operateId);

	ResponseData getExceldata(MultipartFile file, BasicPutgoodsParam basicPutgoodsParam, ResponseData data) throws IOException;

	ResponseData getExceldataupdate(MultipartFile file, BasicPutgoodsParam basicPutgoodsParam, ResponseData data) throws IOException;

	ResponseData getExceldatahx(MultipartFile file, BasicPutgoodsParam basicPutgoodsParam, ResponseData data) throws IOException;

	BasicPutgoodsResult findCareful(BasicPutgoodsParam param);

	LayuiPageInfo findPageBySpecHx(BasicPutgoodsParam basicPutgoodsParam, String condition,Long deptId, Long operateId);

    List<BasicPutgoodsResult> findAvailableList(Long deptId, Long deliverId, Long operateId);

	List<BasicPutgoodsResult> findListBySpecLimit5(BasicPutgoodsParam param, Long operateId);

	List<BasicPutgoodsResult> findListBySpecjinweidu(BasicPutgoodsParam basicPutgoodsParam);

    List<BasicPutgoodsResult> noBindList(BasicPutgoods paramCondition, Long operateId);

    List<BasicPutgoodsResult> bindList(BasicPutgoods paramCondition, Long operateId);

	Workbook exportToExcel(BasicPutgoodsParam basicPutgoodsParam, String condition);
	
	List<BasicPutgoodsResult> exportToExcel(BasicPutgoodsParam param, String condition,Long deptId, Long operateId);

    BasicPutgoodsResult findByName(String name, Long putgoodsCustomerId);

    LayuiPageInfo getStoreByWarehouseId(String warehouseId);

    void unBindStoreByWarehouseId(String storeId, String warehouseId);
}
